/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nus.dataaccess.dao.role;

import com.nus.dataaccess.dao.base.BaseEntity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 *
 * @author robin.foe
 */
@SuppressWarnings("serial")
@Entity
@Table(name="ROLE_TYPE",  uniqueConstraints = @UniqueConstraint(columnNames = "CODE"))
public class RoleType extends BaseEntity{

    	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="ID")
	private Long id;
	public Long getId() {return id;}
	public void setId(Long id) {this.id = id;}
	@Override
	public Serializable getPk() {return this.getId();}

	@Column(name="CODE", length=30)
	private String code;
	public String getCode() {return code;}
	public void setCode(String code) {this.code = code;}

	@Column(name="DESCRIPTION")
	private String description;
	public String getDescription() {return description;}
	public void setDescription(String description) {this.description = description;}

}
